package cn.qn.enums;

/**
 * jwt权限验证所需参数
 * @author Jeet on 2018年6月1日 11:47:09
 */
public enum JwtAuthEnum {
    TOKEN_NULL("token:null_token",-1L),
    TOKEN_OVERDUE("token:overdue",-2L),
    TOKEN_ERROR("token:error",-3L),

    LOGIN_AGAIN("token:login_again",-4L),


    EXPIRATION_TIME("expiration_time",60 * 60 * 24 * 1000),
    SIGN_WITH("OmsJwtSecret",0L),
    AUTH_HEADER("Bearer",0L),
    AUTHORIZATION("Authorization",0L);
    private String code;
    private long value;
    JwtAuthEnum(String code, long value){
        this.code=code;
        this.value=value;
    }

    public long getValue() {
        return value;
    }

    public void setValue(long value) {
        this.value = value;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
